<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Facades\Storage;

class CancelOrderLog extends Model
{
    use HasDateTimeFormatter;

    protected $fillable = ['run_errand_id', 'order_id'];

    public function runErrand(): BelongsTo
    {
        return $this->belongsTo(RunErrand::class);
    }

    public function order(): BelongsTo
    {
        return $this->belongsTo(Order::class);
    }

}
